package com.yzk.back.model.cate;

import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.google.appengine.repackaged.com.google.common.collect.Lists;
import com.yzk.back.model.art.SysArticle;

@Entity
@Table(name="sys_cate")
public class SysCategory {
	private Long cateid;
	private String cateName;
	private List<SysArticle> listart = Lists.newArrayList(); 
	
	@Id
//	@GeneratedValue(strategy=GenerationType.AUTO)
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getCateid() {
		return cateid;
	}
	public void setCateid(Long cateid) {
		this.cateid = cateid;
	}
	public String getCateName() {
		return cateName;
	}
	public void setCateName(String cateName) {
		this.cateName = cateName;
	}
	
	@OneToMany(mappedBy="sc")
	public List<SysArticle> getListart() {
		return listart;
	}
	public void setListart(List<SysArticle> listart) {
		this.listart = listart;
	}

	
	
}
